using System;
using FreeSql.DataAnnotations;
using QntPlatform.Model;

namespace QntPlatform.Db
{
    public class DbManager
    {
        static IFreeSql fsql = new FreeSql.FreeSqlBuilder()
  .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=data.db")
  .UseAutoSyncStructure(true) //自动同步实体结构到数据库
  .Build(); //请务必定义成 Singleton 单例模式
        public static IFreeSql GetDb()
        {
            return fsql;
        }
    }
    public class RobotData:EntityBase<long>
    {
        public long RobotId { get; set; }
        public string Key { get; set; }
        public string Value { get; set; }


    }
}
